@extends('layout.admin.master')
@section('content')
<div class="container-fluid mt-5">
    <div class="card">
        <div class="card-header">
            <h4 class="card-header-title">
                微信基础连接配置
            </h4>
        </div>
        <div class="card-body">
            <form action="{{route('admin.config.update',['name'=>$name])}}" method="post">
                @csrf
                <div class="form-group">
                    <label for="exampleInputEmail1">令牌（token）</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="token" value="{{$data['value']['token']??'mengju'}}">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">身份标识（appid）</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="appid" value="{{$data['value']['appid']??'wx20210839acc2194d'}}">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">缓存路径（cache_path）</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="cache_path" value="{{$data['value']['cache_path']??'storage/houdunren/wechat'}}">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">密钥（appsecret）</label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="appsecret" value="{{$data['value']['appsecret']??'1384da8d864578606166b0c81ed1e44a'}}">
                </div>
                <button type="submit" class="btn btn-primary">保存数据</button>
            </form>

        </div>
    </div>
</div>
@endsection